package edu.sctu.practice.class02.hujie.my_practice.day20151029;

/**
 * Created by hj on 2015/10/29.
 */
//客户端：Cllent
public class Cllent {
    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.eat();
     //   Dog dog = new Dog();
       // dog.eat();

        animal=new Dog();
        animal.eat();

        animal=new Cat();
        animal.eat();
    }
}
